package com.example.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author wang gang
 * @since 2021-10-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("hugeerp_whole_weight")
public class WholeWeight implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "WHOLE_WEIGHT_ID", type = IdType.AUTO)
    private Long wholeWeightId;

    @TableField("WEIGHT_TYPE")
    private String weightType;

    @TableField("STAFF_ID")
    private Integer staffId;

    @TableField("TARE_WEIGHT")
    private BigDecimal tareWeight;

    @TableField("NET_WEIGHT")
    private BigDecimal netWeight;

    @TableField("CAR_NUMBER")
    private String carNumber;

    private String carIdentifier;

    @TableField("STATION_NUMBER")
    private String stationNumber;

    @TableField("STATION_NAME")
    private String stationName;

    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @TableField("UPDATE_TIME")
    private LocalDateTime updateTime;

    private Long wholeWeightBatchId;

    /**
     * 分组
     */
    private Long sortGroupId;

    /**
     * 仓库
     */
    private Long warehouseId;

    /**
     * 服务站到总仓的行驶距离
     */
    private BigDecimal driveDistance;

    /**
     * 服务站到总仓的行驶时间
     */
    private Long moveTimes;

    /**
     * 装车结束时间
     */
    private LocalDateTime endTime;

    public static void main(String[] args) {
        String str=String.format("%s/%s/%s?aaa=b","a","b","c");
        System.out.println(str);
    }
}
